extends "../cTDZ_4/cTDZ_4.gd"
func _info():
	pass

func _connect():
	._connect()
	
func _extInit():
	._extInit()
	chaName = "黄棱蟹"
	lv = 2
	attCoe.atk = 20 / 8.5 * 2 / 2
	attCoe.maxHp = 670 / 112.5 / 2
	attCoe.def = 15 / 15.0 / 2
	attCoe.mgiDef = 15 / 16.6 / 2 
	addSkillTxt("棱晶偏折：受到伤害（所有伤害）时，有20%概率将伤害转移至随机敌方单位")
	
var pw1 = 20

func _onHurt(atkinfo):
	if !atkinfo.isMiss && atkinfo.hitCha == self:
		if sys.test:pw1 = 100
		if sys.rndPer(pw1):
			var chas = getAllChas(1)
			chas.shuffle()
			atkinfo.hitCha = chas[0]
	._onHurt(atkinfo)